﻿using System;

namespace FishServe.Core.Services.UpdaterService.Common
{
	public sealed class FileCheckTask
	{
		public string FileHash { get; set; }
		public string FullFilePath { get; set; }

		public Result ResultState { get; set; }

		public override string ToString()
		{
			return String.Format("File:{0} - Exists:{1} - FileHashPassed:{2}",
				FullFilePath,
				ResultState.ConstainsResult(Result.FilePresent),
				ResultState.ConstainsResult(Result.FileHashPassed)
				);
		}
	}
}
